package com.bsoft.gol.hcb.service.templateSheet.rpc.impl;

import ctd.net.rpc.Client;
import com.bsoft.gol.hcb.service.templateSheet.rpc.IMcPreFilingRpcService;

import java.util.Map;
import org.springframework.stereotype.Service;

@Service
public class McPreFilingRpcServiceImpl implements IMcPreFilingRpcService {
    @Override
    public Map<String, Object> getPreFilingInfo(String recordId) throws Exception {
        return (Map<String, Object>) Client.rpcInvoke("hcm.mcPreFilingService","getPreFilingInfo",recordId);
    }

    @Override
    public String savePreFiling(Map<String, Object> param) throws Exception {
        return (String) Client.rpcInvoke("hcm.mcPreFilingService","savePreFiling",param);
    }
}
